package cn.edu.sjtu.dfa;

import java.util.ArrayList;
import java.util.List;

public class RegisterList {
	private List<Register> list;
	
	public RegisterList() {
	    list = new ArrayList<Register>();
	}
	public void addElement(Register n) {
	    list.add( n );
	}
	public Register elementAt(int i) {
	    return (Register) list.get( i );
	}
	public int size() {
	    return list.size();
	}
}
